package com.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dao.EmpDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;


@SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
@Service
public class EmpService {

    @Autowired
    private EmpDAO empDAO;

    public IPage  searchEmp(int page, int limit ,Map m)
    {
        //封装分页参数
        Page  p = new Page(page,limit);

        IPage result = empDAO.searchEmpPage(p,m);

        return result;

    }

}
